<%--
    非主页的右侧边栏
--%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%--右侧侧边栏 start--%>
<div id="sidebar" class="widget-area all-sidebar"
     style="position: relative; overflow: visible; box-sizing: border-box; min-height: 1px;">


        <%--热门帖子 start--%>
        <aside class="widget hot_comment" >
            <h3 class="widget-title">
                <i class="fa fa-bars"></i>热门帖子
            </h3>
            <div id="hot_comment_widget">
                <ul>
                    <c:forEach items="${hotPostList}" var="h">
                        <li>
                            <a href="/post/${h.postId}" rel="bookmark">
                                    ${h.title}
                            </a>
                        </li>
                    </c:forEach>
                </ul>
            </div>
            <div class="clear"></div>
        </aside>
        <%--热门帖子 end--%>
        <%--最新帖子 start--%>
        <aside id="random_post-7" class="widget random_post wow fadeInUp" data-wow-delay="0.3s">
            <h3 class="widget-title">
                <i class="fa fa-bars"></i>最新发帖
            </h3>
            <div id="random_post_widget">
                <ul>
                    <c:forEach items="${recentPostList}" var="r">
                        <li>
                            <a href="/post/${r.postId}" rel="bookmark">
                                    ${r.title}
                            </a>
                        </li>
                    </c:forEach>
                </ul>
            </div>
            <div class="clear"></div>
        </aside>
        <%--最新帖子 end--%>

</div>
<%--右侧侧边栏 end--%>